<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/WEB-INF/jsp/taglibs-struts2.jsp" %>

<div id="content">
  <div id="breadCrumb"> <a href="#">字典管理</a> / <a href="college|listCollege.action">城市考点</a> / <a href="#">breadcrumb</a> / </div>
  <h2 id="pageName">城市考点管理</h2>
  <form action="college|listCollege.action" method="post">
  <div>
  	<input type="text" name="searchWord" value="<c:out value="${param['searchWord']}"/>">
  </div>
  <c:set var="pageLnk" value="college|listCollege.action?searchWord=${param['searchWord']}"/>
  <%@include file="../common/pageNav.jsp" %>
  </form>
  <div class="story">
    <table border="0" cellpadding="3">
      <tr><td></td><th>考点名称</th><th>考点编码</th><th>城市名</th><th>容纳人数</th><th>地址</th><th>电话</th></tr>
      <c:forEach var="college" items="${collegeList}">
      	<tr>
      		<td><input type="checkbox"></td>
      		<td><a href="<c:url value="college|saveCollege.action"><c:param name="collegeId" value="${college.id}"/></c:url>"><c:out value="${college.collegeName}"/></a></td>
      		<td><c:out value="${college.collegeCode}"/></td>
      		<td><c:out value="${college.city.cityName}"/></td>
      		<td><c:out value="${college.holdCount}"/></td>
      		<td><c:out value="${college.collegeAddress}"/></td>
      		<td><c:out value="${college.collegePhone}"/></td>
      	</tr>
      </c:forEach>
    </table>
  </div>
  
  <div>
  	<input type="button" name="addCollege" value="添加" onclick="createNew()"/>
  </div>
</div>

<script type="text/javascript">
function createNew() {
window.location.href = "college|saveCollege.action";
}
</script>